package com.iraeta.dao;

import com.iraeta.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao {
    int insert(User record);

    int updateByPrimaryKey(User record);

    int deleteByPrimaryKey(Integer id);

    User selectByPrimaryKey(Integer id);

    User selectUserByUserName(@Param("userName") String userName, @Param("pwd") String pwd);
}